package com.gw.vip.server.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gw.vip.server.dto.ShopInfoListDto;
import com.gw.vip.server.po.ShopInfo;
import com.gw.vip.server.service.dao_service.ShopInfoService;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author GW
 * @description
 * @since 2022-09-29
 */
@Service
@Slf4j
@RequiredArgsConstructor
public class ShopService {

    private final ShopInfoService shopInfoService;

    public IPage<ShopInfo> shopInfoList(ShopInfoListDto dto) {
        return shopInfoService.shopInfoList(dto.getShopId(), dto.getName(), dto.getCurrent(), dto.getSize());
    }
}
